package com.vitabuybuy.tv.dto;


import com.vitabuybuy.tv.utils.LanaugeUtils;

import java.util.List;

/**
 * 作者：SimGa
 * 日期：2021/3/19
 * 时间：17:22
 * 包名：com.vitabuybuy.tv.dto
 */
public class TaskPoolDetailDto {
    private String receive;
    /**
     * zipcode : 882455
     * phone : 15622129194
     * defaulted : true
     * name : 刘某人
     * id : 23
     * detail : 天河区
     * allRegion : {"EN":"China Guangdong Guangzhou","CN":"中国 广东 广州","MA":"China Guangdong Guangzhou"}
     */

    private AddressBean address;
    private String endDate;
    private String liveType;
    /**
     * name : 领域标签
     * id : 7
     */

    private LabelBean label;
    /**
     * name : puma旗舰店
     * logo : http://106.55.47.138/attachment/png/2420/2425_4124.png
     * id : 60
     */

    private StoreBean store;
    private String title;
    private String type;
    private String content;
    private int fansQuantity;
    private String createTime;
    private int id;
    private String startDate;
    private String status;
    /**
     * thumbnail : http://106.55.47.138/attachment/png/3598/1575_28558.png
     * promotionPrice : 50.0
     * name : {"CN":"上衣","EN":"as","MA":"yyggg"}
     */

    private List<ProductListBean> productList;

    public String getReceive() {
        return receive;
    }

    public void setReceive(String receive) {
        this.receive = receive;
    }

    public AddressBean getAddress() {
        return address;
    }

    public void setAddress(AddressBean address) {
        this.address = address;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getLiveType() {
        return liveType;
    }

    public void setLiveType(String liveType) {
        this.liveType = liveType;
    }

    public LabelBean getLabel() {
        return label;
    }

    public void setLabel(LabelBean label) {
        this.label = label;
    }

    public StoreBean getStore() {
        return store;
    }

    public void setStore(StoreBean store) {
        this.store = store;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getFansQuantity() {
        return fansQuantity;
    }

    public void setFansQuantity(int fansQuantity) {
        this.fansQuantity = fansQuantity;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<ProductListBean> getProductList() {
        return productList;
    }

    public void setProductList(List<ProductListBean> productList) {
        this.productList = productList;
    }

    public static class AddressBean {
        private String zipcode;
        private String phone;
        private boolean defaulted;
        private String name;
        private int id;
        private String detail;
        private String allRegion;

        private String addressDetail;

        public String getAddressDetail() {
            addressDetail = LanaugeUtils.returnStrByLocation(allRegion) + detail;
            return addressDetail;
        }

        public void setAddressDetail(String addressDetail) {
            this.addressDetail = addressDetail;
        }


        public String getZipcode() {
            return zipcode;
        }

        public void setZipcode(String zipcode) {
            this.zipcode = zipcode;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public boolean isDefaulted() {
            return defaulted;
        }

        public void setDefaulted(boolean defaulted) {
            this.defaulted = defaulted;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getDetail() {
            return detail;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        public String getAllRegion() {
            return LanaugeUtils.returnStrByLocation(allRegion);
        }

        public void setAllRegion(String allRegion) {
            this.allRegion = allRegion;
        }
    }

    public static class LabelBean {
        private String name;
        private int id;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public static class StoreBean {
        private String name;
        private String logo;
        private int id;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public static class ProductListBean {
        private String thumbnail;
        private double promotionPrice;
        private String name;

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public double getPromotionPrice() {
            return promotionPrice;
        }

        public void setPromotionPrice(double promotionPrice) {
            this.promotionPrice = promotionPrice;
        }

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
